//
//  UMDBook.m
//  UMDReader
//
//  Created by 张 霄鹤 on 10-1-6.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import "UMDBook.h"


@implementation UMDBook

@synthesize bookType;
@synthesize bookPath;
@synthesize bookTitle;
@synthesize bookAuth;
@synthesize bookPublishDate;
@synthesize bookKind;
@synthesize bookPublisher;
@synthesize bookVendor;
@synthesize bookEncoding;
@synthesize bookCover;
@synthesize bookChapters;
@synthesize buyer;
@synthesize sign;

- (id)init{
	if(self = [super init]){
		bookChapters = [[ChapterList alloc] init];
	}
	return self;
}

- (BOOL)canSave{
	return YES;
}

- (void)appendChapter:(Chapter *)chapter{
	[bookChapters addObject:chapter];
}

- (void)dealloc{
	[bookPath release];
	[bookTitle release];
	[bookAuth release];
	[bookPublishDate release];
	[bookKind release];
	[bookVendor release];
	[bookEncoding release];
	[bookChapters release];
	[super dealloc];
}

@end
